#include <stdio.h>

int main()
{
	int peach = 1;
	int i = 0;
	while(i < 9)
	
	{
		printf("第%d天有%d个桃子\n",(10 - i), peach);
		peach = (peach + 1) * 2;
		i++;
	}
	printf("第%d天有%d个桃子\n",(10 - i), peach);
	printf("共有桃子：%d\n", peach);
	return 0;
}
